<?php include TMPL_PATH.'public/header.phtml';?>
<style>
    .mydiv_usersize{
        margin: 3px;padding:15px;
    }
    li{ display:inline} 
</style>
<script src="/statics/jquery/jquery-1.9.1.min.js"></script>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('product/user_size_list') ?>' ><em>尺码管理</em></a> <span>|</span> <a href="javascript:;" class="on"><em>添加尺码</em></a> </div>
</div>

<div style="width:800px;height:20px;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="addul" value="继续添加"><input type="submit" name="submit" value="提交" style="float:right">
</div>
<div class="mydiv_usersize">
<form method="post" action="__SELF__">
    <ul>
        <li>身高：<input type="text" name="height[]"> cm &nbsp; &nbsp; &nbsp; </li>
        <li>体重：<input type="text" name="weight[]"> kg &nbsp; &nbsp;</li>
        <li>欧洲码：<input type="text" name="eur_size[]" size="50" />  </li>
        <li>美国码：<input type="text" name="us_size[]" size="50" />  </li>
        <li> <input type='button' style='width:50px' value='X'  onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode)"> </li>
    </ul>
</form>
</div>
<script>
$('#addul').click(function(){
        $('form').prepend($('ul').eq(0).clone());
});
$('input[type=submit]').click(function(){
    $('form').submit();
});
</script>